﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessClass.StateMachine.Core
{
    public class ActionSate<T> : ISate<T>
    {
        public Func<T> Action { get; private set; }
        public ActionSate(Func<T> action)
        {
            Action = action;
        }
        public T Accept(Machine m)
        {
            return m.VisitAction<T>(this);
        }
    }
}
